package cn.cdeden.knowledge.utils;

import cn.cdeden.knowledge.config.OnlineConfig;
import cn.cdeden.knowledge.enums.StorageTypeEnum;

import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


/**
 * @author Yu.
 * @Description // 文件上传的工具类
 * @Date 2024/6/18 11:09
 **/
@Component
//@Configuration
@Slf4j
//@AllArgsConstructor
public class FileStorageUtils {

    private final String storageType = StorageTypeEnum.MINIO.getType();

//    @Value(value = "${fileView.kkFileView:http://127.0.0.1:8012}")
//    private String fileView_url;

    @Autowired
    public OnlineConfig onlineConfig;

    //获取信息

//    public Storage getByID(String id) {
//        return minioStorageService.getByID(id);
//    }
}
